var routeService = (function () {
    function routeService() {
        this.baseUrl = "/";
        this.wilddogUrl = "https://tmsystem-web-dev.wilddogio.com/";
        this.entityUrl = "http://api.map.baidu.com/trace/v2/entity/list";
        this.historyUrl = "http://api.map.baidu.com/trace/v2/track/gethistory";
    }
    routeService.prototype.getUrl = function (url, value) {
        var result = Mustache.render(this.baseUrl + url, value);
        return result;
    };
    routeService.prototype.getBaseUrl = function () {
        return this.baseUrl;
    };
    routeService.prototype.getWilddogUrl = function () {
        return this.wilddogUrl;
    };
    routeService.prototype.getEntityUrl = function (url, value) {
        var result = Mustache.render(this.entityUrl + url, value);
        return result;
    };
    routeService.prototype.getHistoryUrl = function (url, value) {
        var result = Mustache.render(this.historyUrl + url, value);
        return result;
    };
    return routeService;
}());
///**
//* Config
//*/
//var moduleName = 'angularUtils.routeService';
//var DEFAULT_ID = '__default';
///**
// * Module
// */
//var module;
//try {
//    module = angular.module(moduleName);
//} catch (err) {
//    // named module does not exist, so create one
//    module = angular.module(moduleName, []);
//}
app.service("routeService", routeService);
